The DeleteValue method deletes a named value from a specified registry key.
DeleteValue FullKeyValueName [,Flush]
HKLM\Software\MyCompany\MyValue
The key portion of this parameter can be a key on either a local or a remote machine. Keys on a remote machine are specified by prefixing the key name with the machine name. For example:
\\RemoteMachine\HKLM\Software\MyProg
If Flush is set to TRUE, the method writes the registry changes to the disk immediately. Note that explicitly flushing registry changes to the disk may reduce server performance.
If Flush is FALSE, the method does not write the registry changes to the disk. They are instead written to disk by the registry's lazy flusher or when the system shuts down.
The default is FALSE.
MyValue
, which is stored in the registry key HKLM\SYSTEM\CurrentControlSet\Services\W3SVC\ASP\
.<% Set Reg = Server.CreateObject("IISSample.Registry") Reg.DeleteValue "HKLM\SYSTEM\CurrentControlSet\Services\W3SVC\ASP\MyValue", False %>